import request from '@/utils/request'

// 查询商家服务类别关联列表
export function listShopServiceType(query) {
  return request({
    url: '/merchant/shopServiceType/list',
    method: 'get',
    params: query
  })
}

// 查询商家服务类别关联详细
export function getShopServiceType(id) {
  return request({
    url: '/merchant/shopServiceType/' + id,
    method: 'get'
  })
}

// 新增商家服务类别关联
export function addShopServiceType(data) {
  return request({
    url: '/merchant/shopServiceType',
    method: 'post',
    data: data
  })
}

// 修改商家服务类别关联
export function updateShopServiceType(data) {
  return request({
    url: '/merchant/shopServiceType',
    method: 'put',
    data: data
  })
}

// 删除商家服务类别关联
export function delShopServiceType(id) {
  return request({
    url: '/merchant/shopServiceType/' + id,
    method: 'delete'
  })
}
